package com.gzist.elderlyserviceplatform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.ElderlyInfoDto;
import com.gzist.elderlyserviceplatform.entity.po.ElderlyInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 家庭老人信息表 服务类
 */
public interface ElderlyInfoService extends IService<ElderlyInfo> {

    void update(ElderlyInfo elderlyInfo);
    boolean saveElderly(ElderlyInfo elderlyInfo);


    Page<ElderlyInfo> cgetById(String id, Integer pageNum, Integer pageSize);

    Page<ElderlyInfo> queryList(ElderlyInfoDto elderlyInfoDto);

    Integer getAverageAge();
}
